package cn.weekimwee.firstlineofcodeforkotlin.unit3

import android.os.Bundle
import cn.weekimwee.firstlineofcodeforkotlin.BaseActivity
import cn.weekimwee.firstlineofcodeforkotlin.R
import kotlinx.android.synthetic.main.title.*
import org.jetbrains.anko.startActivity

class UIActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_ui)
        supportActionBar?.let {
            it.hide()
        }
        back.setOnClickListener { finish() }
        edit.setOnClickListener { startActivity<UITwoActivity>() }
    }
}
